/*
 * Pratama Nur Wijaya (c) 2013 
 * 
 * Project       : Sound Of Indonesia
 * Filename      : IApps_Data.java
 * Creation Date : Mar 30, 2013 time : 9:34:52 PM
 *
 */

package id.pratama.soundofindonesia.config;

import id.pratama.soundofindonesia.MainActivity;

public interface IApps_Data
{
	/*
	 * Base Width Height untuk resource gambar
	 */
	public final float[]	RATIO_RES_WIDTH_LIST	=
													{
			480, 800
													};

	public final float[]	RATIO_RES_HEIGHT_LIST	=
													{
			800, 480
													};

	/*
	 * Ratio list
	 */
	public final float		RATIO_RES_WIDTH			= RATIO_RES_WIDTH_LIST[Apps_Configuration.ORIENTATION_USE];
	public final float		RATIO_RES_HEIGHT		= RATIO_RES_HEIGHT_LIST[Apps_Configuration.ORIENTATION_USE];

	/*
	 * Dapatkan device Widht dan Height
	 */
	public final float		WIDTH					= MainActivity.activity.getWindowManager().getDefaultDisplay()
															.getWidth();
	public final float		HEIGHT					= MainActivity.activity.getWindowManager().getDefaultDisplay()
															.getHeight();

	public final float[]	RES_WIDTH_LIST			=
													{
			(WIDTH > HEIGHT) ? HEIGHT : WIDTH, (WIDTH > HEIGHT) ? WIDTH : HEIGHT
													};
	public final float[]	RES_HEIGHT_LIST			=
													{
			(WIDTH > HEIGHT) ? WIDTH : HEIGHT, (WIDTH > HEIGHT) ? HEIGHT : WIDTH
													};

	public final float		RES_WIDTH				= RES_WIDTH_LIST[Apps_Configuration.ORIENTATION_USE];
	public final float		RES_HEIGHT				= RES_HEIGHT_LIST[Apps_Configuration.ORIENTATION_USE];

}
